package com.base;

import java.util.Map;

import javax.annotation.Resource;

public class baseService<T> {
	@Resource
	private MybatisDaoMap<T> mybatisDaoMap;
	public MybatisDaoMap<T> getMybatisDaoMap() {
		return mybatisDaoMap;
	}
	public void setMybatisDaoMap(MybatisDaoMap<T> mybatisDaoMap) {
		this.mybatisDaoMap = mybatisDaoMap;
	}
	public MybatisDao<T> getMybatisDao(String str) {
		Map<String, MybatisDao<T>> map = mybatisDaoMap.getMap();
		return map.get(str);
	}
}
